package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysDromMapper;
import com.ruoyi.system.domain.SysDrom;
import com.ruoyi.system.service.ISysDromService;
import com.ruoyi.common.core.text.Convert;

/**
 * dromService业务层处理
 * 
 * @author ruoyi
 * @date 2021-11-09
 */
@Service
public class SysDromServiceImpl implements ISysDromService 
{
    @Autowired
    private SysDromMapper sysDromMapper;

    /**
     * 查询drom
     * 
     * @param dormCrew drom主键
     * @return drom
     */
    @Override
    public SysDrom selectSysDromByDormCrew(String dormCrew)
    {
        return sysDromMapper.selectSysDromByDormCrew(dormCrew);
    }

    /**
     * 查询drom列表
     * 
     * @param sysDrom drom
     * @return drom
     */
    @Override
    public List<SysDrom> selectSysDromList(SysDrom sysDrom)
    {
        return sysDromMapper.selectSysDromList(sysDrom);
    }

    /**
     * 新增drom
     * 
     * @param sysDrom drom
     * @return 结果
     */
    @Override
    public int insertSysDrom(SysDrom sysDrom)
    {
        return sysDromMapper.insertSysDrom(sysDrom);
    }

    /**
     * 修改drom
     * 
     * @param sysDrom drom
     * @return 结果
     */
    @Override
    public int updateSysDrom(SysDrom sysDrom)
    {
        return sysDromMapper.updateSysDrom(sysDrom);
    }

    /**
     * 批量删除drom
     * 
     * @param dormCrews 需要删除的drom主键
     * @return 结果
     */
    @Override
    public int deleteSysDromByDormCrews(String dormCrews)
    {
        return sysDromMapper.deleteSysDromByDormCrews(Convert.toStrArray(dormCrews));
    }

    /**
     * 删除drom信息
     * 
     * @param dormCrew drom主键
     * @return 结果
     */
    @Override
    public int deleteSysDromByDormCrew(String dormCrew)
    {
        return sysDromMapper.deleteSysDromByDormCrew(dormCrew);
    }
}
